<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : list2.jsp
    Description : 당첨자 발표가된 이벤트 리스트를 보여준다.
    author jkKim
    since 2012. 5. 10.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 5. 10.     jkKim     최초 생성
--%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<div class="boardlist-wrap">
    <table summary="번호, 이벤트명, 이벤트기간">
    <caption>당첨자 발표가 된 이벤트 리스트</caption>
    <colgroup>
        <col width="7%" />
        <col />
        <col width="20%" />
    </colgroup>
    <thead>
    <tr>
        <th scope="col">NO</th>
        <th scope="col">이벤트명</th>
        <th scope="col">이벤트기간</th>
    </tr>
    </thead>
    <tbody>
    <c:set var="rowNum" value="${ paginationInfo.totalRecordCount - (paginationInfo.currentPageNo-1)* paginationInfo.recordCountPerPage}" />
    <c:forEach var="result" items="${resultList}" varStatus="status">
    <tr>
        <td class="num">${rowNum - status.index }</td>
        <td><a href="/kr/evnt/selectEvntMnDetailEnd.do?evntMnSn=${result.evntMnSn}">${result.evntTitl}</a></td>
        <td class="center">${fn:substring(result.strtDt, 0, 4)}-${fn:substring(result.strtDt, 4, 6)}-${fn:substring(result.strtDt, 6, 8)} ~ ${fn:substring(result.fnhDt, 0, 4)}-${fn:substring(result.fnhDt, 4, 6)}-${fn:substring(result.fnhDt, 6, 8)}</td>
    </tr>
    </c:forEach>    
    </tbody>
    </table>
</div>
<c:if test="${paginationInfo.totalRecordCount >= 0 }">
    <div class="paging">
        <able:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="eventSubList" />
    </div>
</c:if>